package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoGalleryWorksCondition;
import com.muyu.danmo.mapper.DanmoGalleryWorksConditionMapper;
import com.muyu.danmo.service.IDanmoGalleryWorksConditionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作品品相Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-23
 */
@Service
public class DanmoGalleryWorksConditionServiceImpl implements IDanmoGalleryWorksConditionService
{
    @Autowired
    private DanmoGalleryWorksConditionMapper danmoGalleryWorksConditionMapper;

    /**
     * 查询作品品相
     *
     * @param id 作品品相主键
     * @return 作品品相
     */
    @Override
    public DanmoGalleryWorksCondition selectDanmoGalleryWorksConditionById(Long id)
    {
        return danmoGalleryWorksConditionMapper.selectDanmoGalleryWorksConditionById(id);
    }

    /**
     * 查询作品品相列表
     *
     * @param danmoGalleryWorksCondition 作品品相
     * @return 作品品相
     */
    @Override
    public List<DanmoGalleryWorksCondition> selectDanmoGalleryWorksConditionList(DanmoGalleryWorksCondition danmoGalleryWorksCondition)
    {
        return danmoGalleryWorksConditionMapper.selectDanmoGalleryWorksConditionList(danmoGalleryWorksCondition);
    }

    /**
     * 新增作品品相
     *
     * @param danmoGalleryWorksCondition 作品品相
     * @return 结果
     */
    @Override
    public int insertDanmoGalleryWorksCondition(DanmoGalleryWorksCondition danmoGalleryWorksCondition)
    {
        return danmoGalleryWorksConditionMapper.insertDanmoGalleryWorksCondition(danmoGalleryWorksCondition);
    }

    /**
     * 修改作品品相
     *
     * @param danmoGalleryWorksCondition 作品品相
     * @return 结果
     */
    @Override
    public int updateDanmoGalleryWorksCondition(DanmoGalleryWorksCondition danmoGalleryWorksCondition)
    {
        return danmoGalleryWorksConditionMapper.updateDanmoGalleryWorksCondition(danmoGalleryWorksCondition);
    }

    /**
     * 批量删除作品品相
     *
     * @param ids 需要删除的作品品相主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryWorksConditionByIds(Long[] ids)
    {
        return danmoGalleryWorksConditionMapper.deleteDanmoGalleryWorksConditionByIds(ids);
    }

    /**
     * 删除作品品相信息
     *
     * @param id 作品品相主键
     * @return 结果
     */
    @Override
    public int deleteDanmoGalleryWorksConditionById(Long id)
    {
        return danmoGalleryWorksConditionMapper.deleteDanmoGalleryWorksConditionById(id);
    }
}
